<!-- this code has to be pasted between your head tags in your header file is the best way to go or make an include in php <!-like <? include"bookmark.txt";?> and you must also put this in between the head tags ,

<? $page_title="tony"; ?>
<title><?echo "$page_title"; ?></title>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
var url = "<?echo "http://$HTTP_HOST$REQUEST_URI";?>"; // this is the url of this page
var title = "<? echo "$page_title"; ?>"; // this is the title of this page
function makeLink(){
if(document.all)
window.external.AddFavorite(url,title)
}

// -->
</script>

<!-- and this link you put on the page where you want the above code to work , it must be contained in the <body>tags
<!-- <A HREF="javascript:makeLink()">Bookmark Us</A>